package vshevchuk;

import java.util.ArrayList;

public abstract class IDS 
{
	public IDS next = null;
	String name = null;
	
	public IDS check( String dsName )
	{
		IDS ret = null;
		if( dsName == name )
		{
			ret = this;
		}
		else if(next != null)
		{
			ret = next.check(dsName);
		}
		return ret;		
	}
	abstract public void Save (ArrayList<Base> p) throws Exception ;
	abstract public ArrayList<Base> Load () throws Exception ;
}
